package com.vilen.cms.controller;

import com.vilen.cms.auth.AuthClass;
import com.vilen.cms.auth.AuthMethod;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by vilen on 2017/2/15.
 */
@Controller
@AuthClass("login")
@RequestMapping("/admin/topic")
public class TopicController {

    @RequestMapping("/add")
    @AuthMethod(role = "ROLE_PUBLISH")
    public void add() {

    }

    @RequestMapping("/delete")
    @AuthMethod(role = "ROLE_PUBLISH")
    public void delete() {

    }

    @RequestMapping("/audit")
    @AuthMethod(role = "ROLE_AUDIT")
    public void audit() {

    }
}
